package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceCumulativeSalesCondition 累销活动条件
type DanceCumulativeSalesCondition struct {
	Id           int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesId int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:活动id"` // 活动id
	GiftId       string         `json:"giftId" gorm:"column:gift_id;type:varchar(256);not null;default:'';comment: 礼物id"`
	GiftNum      int64          `json:"giftNum" gorm:"column:gift_num;type:bigint;default:0;not null;comment:礼物个数"`     // 礼物个数
	CreateId     int64          `json:"create_id" gorm:"column:create_id;type:bigint;default:0;not null;comment:更新人id"` // 创建人id
	UpdateId     int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"` // 更新人id
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt    gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
